package com.tongfusoft.shipping.service.impl.admin;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.tongfusoft.da.help.DBUtils;
import com.tongfusoft.web.core.service.ITreeService;

public class ShipTreeServiceImpl implements ITreeService {

	@Override
	public List<Map<String, Object>> getChildrenNodeList(String parentId) {
		if (parentId == null) {
			return DBUtils.executeSelect("/tree#getShip", new HashMap());
		}else {
			Map<String, Object> map = new HashMap<String, Object>();
			map.put("cId", parentId.substring(1, parentId.length()));
			return DBUtils.executeSelect("/tree#getShipCertificate", map);
		}

	}

}
